package com.caregiver.watch.business.data.service;

import com.caregiver.watch.business.data.model.dto.HeartEcgDataAnalysisResp;
import com.caregiver.watch.business.data.model.dto.HeartRriDataAnalysisResp;
import com.caregiver.watch.business.data.model.po.HealthEcg;
import com.caregiver.watch.business.data.model.po.HealthRri;
import com.caregiver.watch.business.user.model.po.UserDevice;

import java.util.List;

/**
 * @Description: 算法服务
 * @Author 疆戟
 * @Date 2025/9/7 19:57
 * @Version 1.0
 */
public interface AlgorithmService {


    /**
     * 获取计算后的睡眠数据
     * @param deviceId 设备ID
     * @param sleepDate 睡眠日期
     * @return
     */
    String getSleepResult(String deviceId, String sleepDate);


    /**
     * 睡眠数据计算
     * @param userDevices
     */
    void sleepDataCalculation(List<UserDevice> userDevices);

    /**
     * 心率数据解析
     * @param deviceUuid 设备ID
     * @param ecgList 心率数据
     */
    HeartEcgDataAnalysisResp heartDataAnalysis(String deviceUuid, List<HealthEcg> ecgList);


    /**
     * 房颤分析
     */
    HeartRriDataAnalysisResp atrialFibrillationDataAnalysis(String deviceUuid, List<HealthRri> rris);
}
